{% extends "admin/change_form.html" %}
{% load i18n admin_modify adminmedia %}

{% block object-tools %}
{{ errors }}

{% if change %}{% if not is_popup %}
  <ul class="object-tools">
	<li><a href="../../eventmessage/?account__account={{ object_id }}" class="historylink">Account activity</a></li>
	<li><a href="../../payment/?account={{ object_id }}" class="historylink">Payments</a></li>
	<li><a href="../../subscription/?account__id={{ object_id }}" class="historylink">Subscription history</a></li>
	<li><a href="history/" class="historylink">{% trans "History" %}</a></li>
  {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
  </ul>
{% endif %}{% endif %}
{% endblock %}
